/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.seaworldsoft.xinxifabu.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

/**
 *
 * @author sam
 */
@Entity
@Table(name="sys_role")
public class Role {
   @Id
   @TableGenerator(name = "role", table = "sys_generator", pkColumnName = "key_name", pkColumnValue = "Role_ID", valueColumnName = "key_value", initialValue = 1, allocationSize = 1)
   @GeneratedValue(strategy = GenerationType.TABLE, generator = "role")  
   
   private int roleId;
   
   /**
    * 角色名称
    */
   @Column(length=50)
   private String roleName;
   
   /**
    * 角色类型 manager:管理类型 common:业务类型（默认）
    */
   @Column(length=10)    
   private String roleType;
   
   @Column(length=150)
   private String roleDemo;

    public int getRoleId() {
        return roleId;
    }

    public void setRoleId(int roleId) {
        this.roleId = roleId;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType;
    }

    public String getRoleDemo() {
        return roleDemo;
    }

    public void setRoleDemo(String roleDemo) {
        this.roleDemo = roleDemo;
    }
   
   
   
   
}
